//
//  AppDelegate.swift
//  iDev
//
//  Created by lbxia on 2021/8/22.
//

import Cocoa

@main
class AppDelegate: NSObject, NSApplicationDelegate {

    @IBOutlet var window: NSWindow!

    var mainWindow: MainWindowController?

    
    func applicationDidFinishLaunching(_ aNotification: Notification) {
        // Insert code here to initialize your application
        
        mainWindow = MainWindowController(windowNibName: "MainWindowController")
//
////
////
        self.window.orderOut(nil)

////
////        //下面2行代码，均可以将新页面显示出来
        mainWindow?.window?.orderFront(nil)
//        [newWindow showWindow:nil];
////
////         //自己隐藏代码，不调用下面代码，老窗口和新窗口同时显示
//        [self.window orderOut:nil];
        
        
         
        
       

    }

    func applicationWillTerminate(_ aNotification: Notification) {
        // Insert code here to tear down your application
    }


}

